{if !empty($diyitem['data'])}
    <a class="seckill-group {if $diyitem['style']['hideborder']==1}noborder{/if} {if count($diyitem['data']['goods'])>=4}swiper{/if} seckill-group-{$diyitemid}"
         data-element=".seckill-group-{$diyitemid}"
         data-view="auto" data-free="true"
         data-space="10"
         data-callback="seckill"
         style="display:block;margin-top: {$diyitem['style']['margintop']}px; background-color: {$diyitem['style']['background']};"
         href="{php echo mobileUrl('seckill',array('taskid'=>$diyitem['params']['taskid']))}"
         data-nocache="true"
    >
        <div class="seckill-title">
            <div class="seckill-text">
                {if !empty($diyitem['params']['iconurl'])}
                    <img src="{php echo tomedia($diyitem['params']['iconurl'])}" />
                {else}
                     <span class="title" style="color:red">{$diyitem['data']['tag']}</span>
                {/if}
                <span class="title" style="color: {$diyitem['style']['titlecolor']};">{$diyitem['data']['time']}点场 </span>
                <div class="killtime" style="color: {$diyitem['style']['timecolor']};" data-toggle="timer" data-status="{$diyitem['data']['status']}" data-timer="{$diyitem['data']['endtime']}|.time-hour|.time-min|.time-sec|{$diyitem['data']['starttime']}">
                    {if $diyitem['data']['status']==0}
                    距结束
                    {elseif $diyitem['data']['status']==1}
                    距开始
                    {else}
                     {/if}
                    <span class="item time-hour" style="border-color:{$diyitem['style']['timebordercolor']};background-color: {$diyitem['style']['timebgcolor']};">--</span>
                    <span style="color: {$diyitem['style']['timesigncolor']};">:</span>
                    <span class="item time-min" style="border-color:{$diyitem['style']['timebordercolor']};background-color: {$diyitem['style']['timebgcolor']};">--</span>
                    <span style="color: {$diyitem['style']['timesigncolor']};">:</span>
                    <span class="item time-sec" style="border-color:{$diyitem['style']['timebordercolor']};background-color: {$diyitem['style']['timebgcolor']};">--</span>
                </div>
            </div>
            <div class="seckill-remark"  style="color: {$diyitem['style']['morecolor']};">更多</div>
        </div>
        <div class="seckill-goods swiper-container">
            <div class="swiper-wrapper">
                {loop $diyitem['data']['goods'] $g}
                <div class="item swiper-slide" {if count($diyitem['data']['goods'])<6}style='margin-right:.5rem'{/if}>
                    <div class="thumb">
                        <img src="{$g['thumb']}" />
                        <!--<div class="tag">热卖</div>-->
                    </div>
                    <div class="marketprice" style="color: {$diyitem['style']['marketpricecolor']};">&yen;{$g['price']}</div>
                    <div class="productprice" style="color: {$diyitem['style']['productpricecolor']};">&yen;{$g['marketprice']}</div>
                </div>
                {/loop}
                {if count($diyitem['data']['goods'])>=4}
                <div class="item last-item swiper-slide">
                    <i class="icon icon-left"></i>
                    <div class="inner">
                        <p>查</p>
                        <p>看</p>
                        <p>更</p>
                        <p>多</p>
                    </div>
                </div>
                {/if}
            </div>
        </div>
    </a>
{/if}
